<template>
  <div>
    <el-dialog
      v-model="dialogVisible"
      width="80%"
      align-center
      :show-close="false"
      destroy-on-close
      draggable
      class="body-dialog"
    >
      <template #header="{ close }">
        <div class="dialog-header flex justify-between items-center">
          <div>科研服务查看</div>
          <el-icon class="el-icon--left cursor-pointer" @click="close"
            ><CircleCloseFilled color="#fff"
          /></el-icon>
        </div>
      </template>
      <BaseInfo :operateId="operateId" showCheckText />
      <template #footer>
        <div class="dialog-footer">
          <div class="operate-btns">
            <el-button type="primary" @click="dialogVisible = false">关闭</el-button>
          </div>
        </div>
      </template>
    </el-dialog>
  </div>
</template>

<script setup>
import BaseInfo from "./BaseInfo.vue";
const dialogVisible = ref(false);
const operateId = ref(null);
//查看
const view = (id) => {
  dialogVisible.value = true;
  operateId.value = id;
};
defineExpose({ view });
</script>

<style scoped lang="scss">
@import url("@/views/project/index.scss");
</style>
